From 3f38cef6bcede6f58cd4e91fb796e84cc978dd5c Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Thu, 25 Nov 2021 10:09:04 -0700 Subject: [PATCH] prefer rte_waypt_ct() over waypoint_list.count(). this provides some insulation from the underlying WaypointList container. --- dmtlog.cc | 2 +- mapsend.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dmtlog.cc b/dmtlog.cc index d37893d0f..26166b465 100644 --- a/dmtlog.cc +++ b/dmtlog.cc @@ -699,7 +699,7 @@ write_header(const route_head* trk) int count = 0; if (trk != nullptr) { - count = trk->waypoint_list.count(); + count = trk->rte_waypt_ct(); } if (!trk || trk->rte_name.isEmpty()) { write_str("Name", fout); diff --git a/mapsend.cc b/mapsend.cc index 61c761dce..ba26430f2 100644 --- a/mapsend.cc +++ b/mapsend.cc @@ -430,7 +430,7 @@ static void mapsend_track_hdr(const route_head* trk) gbfputpstr(tname, mapsend_file_out); /* total nodes (waypoints) this track */ - int i = trk->waypoint_list.count(); + int i = trk->rte_waypt_ct(); gbfputint32(i, mapsend_file_out); -- 2.30.2